﻿// --------------------------------------------------------------------------------------------------------------------
// <copyright file="CuitHtmlCell.cs" company="">
//   
// </copyright>
// <summary>
//   The cuit html cell.
// </summary>
// --------------------------------------------------------------------------------------------------------------------

namespace UITest.CUIT.CuitControls.HtmlControls
{
    using Microsoft.VisualStudio.TestTools.UITesting;
    using Microsoft.VisualStudio.TestTools.UITesting.HtmlControls;

    /// <summary>
    /// The cuit html cell.
    /// </summary>
    public class CuitHtmlCell : CuitHtmlControl<HtmlCell>
    {
        #region Constructors and Destructors

        /// <summary>
        ///     Initializes a new instance of the <see cref="CuitHtmlCell" /> class.
        /// </summary>
        public CuitHtmlCell()
        {
        }

        /// <summary>
        /// Initializes a new instance of the <see cref="CuitHtmlCell"/> class.
        /// </summary>
        /// <param name="testControl">
        /// The test control.
        /// </param>
        public CuitHtmlCell(UITestControl testControl)
            : base(testControl)
        {
        }

        /// <summary>
        /// Initializes a new instance of the <see cref="CuitHtmlCell"/> class.
        /// </summary>
        /// <param name="testControl">
        /// The test control.
        /// </param>
        /// <param name="searchProperties">
        /// The search properties.
        /// </param>
        public CuitHtmlCell(UITestControl testControl, string searchProperties)
            : base(testControl, searchProperties)
        {
        }

        /// <summary>
        /// Initializes a new instance of the <see cref="CuitHtmlCell"/> class.
        /// </summary>
        /// <param name="testControl">
        /// The test control.
        /// </param>
        /// <param name="rowIndex">
        /// The row index.
        /// </param>
        /// <param name="colIndex">
        /// The col index.
        /// </param>
        public CuitHtmlCell(UITestControl testControl, int rowIndex, int colIndex)
            : this(testControl, "RowIndex=" + rowIndex + ";ColumnIndex=" + colIndex)
        {
        }

        /// <summary>
        /// Initializes a new instance of the <see cref="CuitHtmlCell"/> class.
        /// </summary>
        /// <param name="testControl">
        /// The test control.
        /// </param>
        /// <param name="searchProperties">
        /// The search properties.
        /// </param>
        /// <param name="filterProperties">
        /// The filter properties.
        /// </param>
        public CuitHtmlCell(UITestControl testControl, string searchProperties, string filterProperties)
            : base(testControl, searchProperties, filterProperties)
        {
        }

        /// <summary>
        /// Initializes a new instance of the <see cref="CuitHtmlCell"/> class.
        /// </summary>
        /// <param name="wrappedControl">
        /// The ast control.
        /// </param>
        /// <param name="searchProperties">
        /// The search properties.
        /// </param>
        public CuitHtmlCell(ICuitControlBase wrappedControl, string searchProperties)
            : base(wrappedControl, searchProperties)
        {
        }

        /// <summary>
        /// Initializes a new instance of the <see cref="CuitHtmlCell"/> class.
        /// </summary>
        /// <param name="wrappedControl">
        /// The ast control.
        /// </param>
        /// <param name="searchProperties">
        /// The search properties.
        /// </param>
        /// <param name="filteProperties">
        /// The filte properties.
        /// </param>
        public CuitHtmlCell(ICuitControlBase wrappedControl, string searchProperties, string filteProperties)
            : base(wrappedControl, searchProperties, filteProperties)
        {
        }

        /// <summary>
        /// Initializes a new instance of the <see cref="CuitHtmlCell"/> class.
        /// </summary>
        /// <param name="wrappedControl">
        /// The ast control.
        /// </param>
        /// <param name="rowIndex">
        /// The row index.
        /// </param>
        /// <param name="colIndex">
        /// The col index.
        /// </param>
        public CuitHtmlCell(ICuitControlBase wrappedControl, int rowIndex, int colIndex)
            : this(wrappedControl.GetMicrosoftTestControl(), rowIndex, colIndex)
        {
        }

        #endregion
    }
}